﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using WFL.IoCUnity;

namespace WFL.RBAC
{
    public class OperationBLL
    {
        private IOperation _operation;

        public OperationBLL()
        {
            _operation = UnityUtility.Resolve<IOperation>();
        }

        public void Create(Operation item)
        {
            _operation.Create(item);
        }

        public void Delete(int resourceId, int id)
        {
            _operation.Delete(resourceId, id);
        }

        public void Update(Operation item)
        {
            _operation.Update(item);
        }

        public IList<Operation> GetList(int resourceId)
        {
            return _operation.GetList(resourceId);
        }

        public Operation Get(int resourceId, int id)
        {
            return _operation.Get(resourceId, id);
        }

        public Operation Get(int resourceId, string name)
        {
            return _operation.Get(resourceId, name);
        }
    }
}
